<html>
<head><meta charset="utf-8"><title>InternedConcreteConst · wg-traits · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/index.html">wg-traits</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/InternedConcreteConst.html">InternedConcreteConst</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="207042217"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/InternedConcreteConst/near/207042217" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Ani <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/InternedConcreteConst.html#207042217">(Aug 15 2020 at 22:17)</a>:</h4>
<p>Should there be a <code>ConcreteConstData</code> type as the interned version of <code>ConcreteConst</code>? In particular, looking at the implementation of <code>Interner</code> for <code>ChalkIr</code>, <code>type InternedConcreteConst = u32</code> seems to be the odd one out. I'm thinking of just putting a <code>u32</code> in <code>ConcreteConstData</code> for now.</p>



<a name="207062112"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/InternedConcreteConst/near/207062112" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/InternedConcreteConst.html#207062112">(Aug 16 2020 at 08:47)</a>:</h4>
<p>concrete consts are supposed to be opaque to Chalk, it can only compare them to see whether they're equal. Note that the <code>u32</code> representation is just for the integration tests, it's not how actual concrete consts are represented in the compiler</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>